import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';
import { QueryFeiShuTenantAccessTokenType } from './query-feishu-tenant-access-token.dto';

export class BaseTenantDto {
  @ApiProperty({
    description: '自建应用',
    example: 'yu_an_gpt',
  })
  @IsNotEmpty({ message: '自建应用不能为空' })
  tenant: QueryFeiShuTenantAccessTokenType;
}
